<ul class="nav">
    <li @if(request()->routeIs('index')) class="on" @endif><a href="/">首页</a></li>
    <li @if(request()->routeIs('productIndex')) class="on" @endif><a href="{{ route('productIndex') }}">产品</a></li>
    <li><a href="https://hydzyxcbs.tmall.com" target="_blank">购书商城</a></li>
    <li @if(request()->routeIs('resourceIndex')) class="on" @endif><a href="{{ route('resourceIndex') }}">资源下载</a></li>
    <li @if(request()->routeIs('about')) class="on" @endif><a href="{{ route('about') }}">关于我们</a></li>
    <li @if(request()->routeIs('activity')) class="on" @endif><a href="{{ route('activity') }}">出版动态</a></li>
    {{--<li @if(request()->routeIs('join')) class="on" @endif><a href="{{ route('join') }}">诚聘英才</a></li>--}}
    <li><a href="{{ route('index') }}">中文</a>/<a href="{{ route('enIndex') }}">English</a></li>
    <li class="dropdown">
        <a class="dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="wechat"></i></a>
        <div class="dropdown-menu wechat-colde">
            <img src="{{ asset('statics/images/icon_star_qrcode.jpg') }}" alt="" />
        </div>
    </li>
    <li><a href="https://weibo.com/u/5804910556" target="_blank"><i class="weibo"></i></a></li>
    @if(!Auth::check())
        <li><a href="{{ route('login') }}"><i class="login"></i>登录</a></li>
    @else
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{{ route('home') }}"><i class="login"></i>{{ str_limit(Auth::user()->name, 8, '...') }}</a>
            <ul class="dropdown-menu personal">
                <li><a href="{{ route('home') }}">个人中心</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">退出</a></li>
            </ul>
            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                {{ csrf_field() }}
            </form>
        </li>
    @endif
</ul>